package cn.iocoder.yudao.module.pay.splitting.job;

import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.module.pay.splitting.service.core.CorePaySplittingService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/07/22
 */
@Component
@Slf4j
public class PaySplittingReceiveJob implements JobHandler {
    @Resource
    private CorePaySplittingService corePaySplittingService;

    @Override
    public String execute(String param) throws Exception {
        int count = corePaySplittingService.receiveSplitting();
        log.info("[execute][MallBook分账确认数量 ({}) 个]", count);
        return String.format("MallBook分账确认数量 %s 个", count);
    }

}
